imports:
    - { resource: ./../config/default.yml }

services:
    Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\Controller\SecurityController:
        public: true
        tags:
            - container.service_subscriber

security:
    providers:
        main:
            memory:
                users:
                    the-username: { password: the-password, roles: ['ROLE_FOO'] }
                    no-role-username: { password: the-password, roles: [] }
        custom:
            memory:
                users:
                    other-username: { password: the-password, roles: ['ROLE_FOO'] }
        stateless:
            memory:
                users:
                    stateless-username: { password: the-password, roles: ['ROLE_FOO'] }

    firewalls:
        main:
            pattern: ^/main
            form_login:
                check_path: /main/login/check
            provider: main
        custom:
            pattern: ^/custom
            form_login:
                check_path: /custom/login/check
            provider: custom
        stateless:
            pattern: ^/stateless
            stateless: true
            http_basic: ~
            provider: stateless

    access_control:
        - { path: '^/main/user_profile$', roles: IS_AUTHENTICATED_FULLY }
